﻿@{
    ViewBag.Title = "编辑角色";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model RoleDto
<div class="row">
    @using (Html.BeginHBootstrap_Box("编辑角色"))
    {
        using (Html.BeginForm("Edit", "Role", FormMethod.Post, new { id = "postForm", @class = "form-horizontal", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
        {
        @Html.HiddenFor(m => m.Id)
        <div class="form-group">
            <label class="col-sm-3 control-label">
                <span class="text-danger">*</span>角色名称：</label>
            <div class="col-sm-8">
                @Html.TextBoxFor(m => m.RoleName, new { @class = "form-control" })
                @Html.ValidationMessageFor(m => m.RoleName)
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-3">
                <button class="btn btn-primary" type="submit">
                    提交</button>
                <a class="btn btn-default" type="button" href="@Url.Action("Index", "Role")" >取消</a>
            </div>
        </div>
        }
    }
</div>

